package com.accompany.service;

import com.accompany.entity.Orders;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author DC
 * @since 2024-12-26
 */
public interface OrdersService extends IService<Orders> {

    Page<Orders> getPaginatedOrders(Integer page, Integer size);

    List<Orders> getAllOrders();

    Orders getOrderById(Long id);

    void updateOrder(Orders order);

    void deleteOrder(Long id);

    void createOrder(Orders order);
}
